import { any, must } from "../../core/logic";
import { guid } from "../../core/utils";
import { locations } from "../locations";
import { Base } from "../../core/Base";
class Parameter extends Base{
    constructor(opts={}){
        super(opts);
        this._value=any(opts.value,true);
        this._group=must(locations[opts.name][0]);
        this._binding=must(locations[opts.name][1]);
        this._state=false;
    }
    get state(){
        return this._state;
    }
    set state(v){
        this._state=v;
        return this;
    }
    get value(){
        return this._value;
    }
    set value(v){
        this._value=v;
        return this;
    }
    get binding(){
        return this._binding;
    }
    set binding(v){
        this._binding=v;
        return this;
    } 
    get group(){
        return this._group;
    }
    set group(v){
        this._group=v;
        return this;
    }
    destroy(){
        
    }
}
export {Parameter}